﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;



namespace My.Core.Model.Models
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class FrameworkRole
    {
        /// <summary>
        /// 角色主键id
        /// </summary>
        [DisplayName("主键Id")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)] //设置主键自增
        [Key]
         public int Id { get; set; }

        /// <summary>
        /// 名称  
        /// </summary>
        [DisplayName("Name")]
        [Required]
        public string Name { get; set; }

        /// <summary>
        ///获取或设置是否禁用，逻辑上的删除，非物理删除
        /// </summary>
        [Display(Name = "是否删除")]
        [DefaultValue(false)]
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 创建ID
        /// </summary>
        [Display(Name = "创建ID")]
        public int? CreateId { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        [Display(Name = "创建者")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改ID
        /// </summary>
        [Display(Name = "修改ID")]
        public int? ModifyId { get; set; }
        /// <summary>
        /// 修改者
        /// </summary>
        [Display(Name = "修改者")]
        public string ModifyBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        public DateTime? ModifyTime { get; set; } = DateTime.Now;
    }


}
